﻿@{Htss.Platform.Web.HtmlHelper Html = new Htss.Platform.Web.HtmlHelper();}
<!doctype html>
<html>
<head>
    <meta charset="utf-8" />
    <title>有云浏览-@DreamBox.DAL.SiteConfig.Config.SiteName-@DreamBox.DAL.SiteConfig.Config.Title</title>
    <meta name="description" content="@DreamBox.DAL.SiteConfig.Config.Description" />
    <meta name="keywords" content="@DreamBox.DAL.SiteConfig.Config.KeyWords" />
    <script src="/tools/js/jquery-2.1.1.min.js" type="text/javascript"></script>
    <link href="/style/metro/css/metro-bootstrap.css" rel="stylesheet" />
    <script src="/style/metro/css/metro.min.js"></script>
    <style type="text/css">
        .gbox {
            width: 100px;
            z-index: 999;
            height: auto;
            position: fixed;
            _position: absolute;
            top: 120px;
            left: 1040px;
            margin: 5px;
        }
    </style>
</head>
<body class="metro">
    <div class="container">
        @Html.Action("", "header")
        <!--主题开始-->
        <div class="gbox">
            <div>
                <a href="JavaScript:PostsAttentionAdd(@(Html.ViewData["PostsID"]))" id="PostsAttention_@(Html.ViewData["PostsID"])" class="button primary" style=" margin-top:5px;">关注</a>
                <br />
                <a href="/posts/reply/@(Html.ViewData["PostsID"])" class="button primary" target="_blank" style=" margin-top:5px;">回帖</a>
            </div>
        </div>
        <div class="grid offset3">
            <div class="row">
                <div class="span6">
                    <h5>@Html.ViewData["Title"]</h5>
                </div>
            </div>
            @if (Html.Request.QueryString["p"] == null || Html.Request.QueryString["p"] == "1")
            {
                foreach (Htss.Platform.Data.DbRow row in Html.ViewDbTable["TopicData"].Rows)
                {
                    <div class="row">
                        <div class="listview">
                            <div class="list span10" style="cursor:default;">
                                <div class="list-content">
                                    <img src="@(row["Avatar"])" title="@(row["UserName"])" alt='@(row["UserName"])' class="icon" />
                                    <div class="data">
                                        <span class="list-title"><h5>@(row["UserName"])&nbsp;&nbsp;Ta在:@(row["Location"])&nbsp;&nbsp;注册:@(DateTime.Parse(row["RegisterDate"].ToString()).ToString("yyyy-MM-dd"))&nbsp;&nbsp;最后登录:@(DateTime.Parse(row["LastLoginDate"].ToString()).ToString("yyyy-MM-dd"))</h5></span>
                                        <span class="list-subtitle">浏览:@(row["BrowseCount"])&nbsp;&nbsp;发布时间:@(row["PostDate"])</span>
                                    </div>
                                </div>
                                <div class="row padding10">
                                    @*<h3 class="text-center">
                                        @(Html.ViewData["Title"])
                                    </h3>*@
                                    <div class="content">
                                        @if (bool.Parse(row["IsStatus"].ToString()))
                                        {
                                            @(row["Contents"].ToString())
                                        }
                                        else
                                        {
                                            <span style="color:Red">该有云已经被锁定,不能浏览其内容!</span>
                                        }
                                    </div>
                                    <br />
                                    @if (Html.Session["GID"].ToString() == "3")
                                    {
                                        <a rel="nofollow" href="JavaScript:SetForPosts(@(row["PostsID"]),@(row["UserID"]))" id="posts_@(row["PostsID"])" class="button">管 理</a>
                                    }
                                    <a rel="nofollow" href="JavaScript:UpdatePlusForPosts(@(row["PostsID"]),@(row["Plus"]))" class="button" id="PostsPlus_@(row["PostsID"])">(+1)(@(row["Plus"]))</a>
                                </div>
                            </div>
                        </div>
                    </div>
                }
            }
            <!--主题结束-->
            <!--回帖开始-->
            @foreach (Htss.Platform.Data.DbRow row in Html.ViewDbTable["ListData"].Rows)
            {<div class="row">
                <div class="listview">
                    <div class="list span10">
                        <div class="list-content" style="cursor:default;">
                            <img src="@(row["Avatar"])" title="@(row["UserName"])" alt='@(row["UserName"])' class="icon" />
                            <div class="data">
                                <span class="list-title"><h5>@(row["UserName"])&nbsp;&nbsp;Ta在:@(row["Location"])&nbsp;&nbsp;注册:@(DateTime.Parse(row["RegisterDate"].ToString()).ToString("yyyy-MM-dd"))&nbsp;&nbsp;最后登录:@(DateTime.Parse(row["LastLoginDate"].ToString()).ToString("yyyy-MM-dd"))</h5></span>
                                <span class="list-subtitle"> #@(DreamBox.BLL.Posts.ItemIndex.Index++)楼#&nbsp;&nbsp;发布时间:@(row["PostDate"])</span>
                            </div>
                            <div class="row">
                                <div class="content">
                                    @if (bool.Parse(row["IsStatus"].ToString()))
                                    {
                                        @(row["Contents"].ToString())
                                    }
                                    else
                                    {
                                        <span style="color:Red">该回复已经被锁定,不能浏览其内容!</span>
                                    }
                                </div>
                                <br />
                                @if (Html.Session["GID"].ToString() == "3")
                                {
                                    <a rel="nofollow" href="JavaScript:SetForReply(@(row["ReplyID"]),@(row["UserID"]))" id="reply_@(row["ReplyID"])" class="button">管 理</a>
                                }
                                <a rel="nofollow" href="/posts/reply/@(row["PostsID"])?reply=@(row["ReplyID"])" class="button">引用</a>
                                <a rel="nofollow" id="ReplyPlus_@(row["ReplyID"])" href="JavaScript:UpdatePlusForReply(@(row["ReplyID"]),@(row["Plus"]))" class="button">(+1)</a><span><a class="button" href="#" id="ReplyPlusCount_@(row["ReplyID"])">@(row["Plus"])</a></span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            }
        </div>
        <div class="row offset3">
            <div class="span12">
                @Html.ViewData["ListPage"]
            </div>
        </div>
        @Html.Action("", "footer")
    </div>
    <script src="/js/tips.js" type="text/javascript"></script>
    <script src="/js/posts.js" type="text/javascript"></script>
    <script src="/js/admin.js" type="text/javascript"></script>
</body>
</html> 